import {defineStore} from 'pinia'

export const useCountStore = defineStore('count', { 
    state: () => {
        return {
            sum: 6
        }
    },
    actions: {
        increment(count: number) {
            this.sum += count
        }
    },
    getters: {
        bigSum: (state) => state.sum * 2
    }
});